<template>
    <div>
<van-nav-bar  
    title="标题"  
    left-arrow  
    :border="false"
  >  
    <!-- 自定义左侧内容 -->  
    <template #left>  
      <van-icon name="manager-o" @click="Dltype" /> 
    </template>  
  
    <!-- 自定义右侧内容 -->  
    <template #right>  
     <van-icon name="like-o" @click="Xxtype" />
    </template>  
  </van-nav-bar>
    </div>
</template>
<script>
export default {



 data() {  
    return {  
      username: '',  
      password: '',  
      error: null  
    };  
  },  
  methods: {
    Dltype() {
      this.$router.push('/login')
    },
    Xxtype() {
      this.$router.push('/message')
    }
  }
}
</script>
<style scoped >
div{
width: 100%;}
</style>
